An automatic sequence (or k-automatic sequence) is an infinite sequence of terms characterized by a finite automaton. The n-th term of the sequence is a mapping of the final state of the automaton when its input is the digits of n in some fixed base k.[1] A k-automatic set is a set of non-negative integers for which the sequence of values of its characteristic function is an automatic sequence: that is, membership of n in the set can be determined by a finite state automaton on the digits of n in base k.[2]
Contents |
Let q be an integer, and A = (E, φ, e) be a deterministic automaton where
also let A be a finite set, and π:E → A a projection towards A.
For each n, take m(n) = π(φ(e,)) where is n written in base q. Then the sequence m = m(1)m(2)m(3)... is called a q-automatic sequence.[1]
Let σ be a morphism of the free monoid E* with , and such that σ(e) begins by e. Let also be A and π as before. Then if is a fixpoint of σ, that is to say = σ(), then m = π() is a q-automatic sequence over A.[3]
k-automatic sequences are normally only defined for k ≥ 2.[1] The concept can be extended to k = 1 by defining a 1-automatic sequence to be a sequence whose n-th term depends on the unary notation for n, that is (1)n. Since a finite state automaton must eventually return to a previously visited state, all 1-automatic sequences are eventually periodic.
For given k and r, a set is k-automatic if and only if it is kr-automatic. Otherwise, if h and k are multiplicatively independent, then a set is both h-automatic and k-automatic if and only if it is 1-automatic, that is, ultimately periodic.[4]
The following sequences are automatic:
An automatic real number is a real number for which the base-b expansion is an automatic sequence.[5] All such numbers are either rational or transcendental.[6]